﻿using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.Borad.Model;

namespace OgilvyOne.Borad.IDAL
{
    public interface IDALQuestionsSUV
    {
        /// <summary>
        /// 保存到数据库
        /// </summary>
        /// <param name="model">QuestionsModel实体类</param>
        /// <returns></returns>
        int Add(QuestionsModel model);

        /// <summary>
        /// 验证email的唯一性
        /// </summary>
        /// <param name="email">要验证的email</param>
        /// <returns>返回int型验证结果 大于0 表示已存在</returns>
        int IsExist(string email);
    }
}
